package com.example.demo.day0304;

public class DemoState implements Runnable{
    public DemoState() {
    System.out.println(Thread.currentThread().getName()+" state in Constructor:"+
            Thread.currentThread().getState());
}

    public void run() {
        System.out.println(Thread.currentThread().getName()+" state in Run:"+
                Thread.currentThread().getState());//运行时的状态时runnable
    }

}
